﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BE.Web.Betfair.Interface.Entities;
using System.Diagnostics.Contracts;

namespace BE.Web.Betfair.Interface.Requests
{
    /// <summary>
    /// Requests funding information of a user
    /// </summary>
    public sealed class UserFundsRequest : SessionBasedRequest<FundInfo>
    {
         /// <summary>
        /// Initializes a new instance of the <see cref="UserFundsRequest"/> class.
        /// </summary>
        /// <param name="session">The session.</param>
        /// <param name="completed">The completed.</param>
        public UserFundsRequest(Session session, Action<FundInfo> completed) : base(session,completed)
        {
            #region conditions
            Contract.Requires<ArgumentNullException>(session != null);
            Contract.Requires<ArgumentNullException>(completed != null);
            #endregion
        }
    }
}
